package edu.nf.ch01.common.exception;

import lombok.Data;
import lombok.Getter;

/**
 * @author wangl
 * @date 2025/4/16
 */
@Getter
public class GlobalException extends RuntimeException {
    /**
     * 异常错误码
     */
    private final Integer errorCode;

    public GlobalException(int errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }
}